createGame
Sets properties on the game model then persists it to the server. Once the "save" request resolves a new Game instance is created and assigned to game.
viewmodel.createGame(ev)
Sets properties on the game model then persists it to the server. Once the "save" request resolves a new Game instance is created and assigned to game.
Parameters
-
ev
{Event}OptionalA DOM Level 2 event that
preventDefaultwill be called on.